*** Settings ***
Library           Selenium2Library
Library           ../CommonLibs/SeleniumUtils/CustomSeleniumLibrary.py
Resource          OpElements/OpElements.robot
Library           ../CommonLibs/WinComm/WinCmd.py

*** Keywords ***
核心系统登录
    [Arguments]    ${url}    ${Lusername}    ${username}    ${Lpasswd}    ${passwd}    ${Lsubmit}
    #清理进程 headlesschrome    headlesschrome
    Open Browser    ${url}    headlesschrome    alias=VHL
    #Headless    ${url}
    # Set Window Size js    1600    890
    Set Window Size    1600    890
    input text    ${Lusername}    ${username}
    input text    ${Lpasswd}    ${passwd}
    click Button    ${Lsubmit}
    sleep    1

Headless
    [Arguments]    ${url}
    ${options}=    get_headlesschrome_options
    ${dirver}=    Create Webdriver    Chrome    \    chrome_options=${options}
    GO TO    ${url}
